#ifndef __EMAIL_H__
#define __EMAIL_H__

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <glib.h>
#include "mailhead.h"
#include "mime.h"
#include "mail.h"
#include "common.h"


// 这里面的全部是指针，指向mail里

typedef struct __email
{
	MAILHEAD	*head;
	MIME		*text;
	MIME		*html;
	
	GSList		*attach;
}EMAIL;

EMAIL*	email_new (MAIL*);
void	email_delete (EMAIL*);

#endif
